All Questions
4 questions
1vote
1answer
94views
Design of genetic algorithm which would allow TDD
I'm implementing genetic algorithm in Java and I want to learn TDD with this project. Currently I have this code: ...
2votes
1answer
783views
Testing controller class using mockito mvc
I'm beginner java programmer and would like to ask you to take a look at my code. I wrote small rest service among with tests. Now I have to questions to ask. The test methods: ...
14votes
4answers
4kviews
Coin dispenser program
I've decided to go tech and learn a language. I have been reading Java for a week and here is my first attempt. I am making a habit to write JUnit test cases so that I start on correct path. Here is ...
0votes
3answers
95views
Prompt name tests
I'd like to refactor my extractSimplePromptName so it does the same but it's "prettier", hence less code. As far as looking at it, it seems like it could be ...